﻿@{
    ViewBag.Title = "WareHouseEnterInternal";
    Layout = "~/Views/Shared/_Index.cshtml";
}

<head>
    <title></title>
    <link href="~/Content/css/WareHouseStorage.css" type="text/css" rel="stylesheet" />
    <script>
        var moduleId = $.request("moduleId");
        $(function () {
            gridList();
        })
        function gridList() {
            $("#gridList").dataGrid({
                treeGrid: true,
                treeGridModel: "adjacency",
                ExpandColumn: "F_Location",
                url: "/SystemManage/ModuleButton/GetTreeGridJson?moduleId=" + moduleId,
                height: $(window).height() - 90,
                colModel: [
                { label: "主键", name: "F_Id", width: 250, align: 'left' },
                // { label: "主键", name: "F_Id", hidden: true, key: true },
                { label: '名称', name: 'F_FullName', width: 180, align: 'left' },
                {
                    label: '位置', name: 'F_Location', width: 100, align: 'left',
                    formatter: function (cellvalue) {
                        if (cellvalue == 1) {
                            return "初始";
                        } else {
                            return "选中";
                        }
                    }
                },
                { label: '事件', name: 'F_JsEvent', width: 160, align: 'left' },
                { label: '连接', name: 'F_UrlAddress', width: 270, align: 'left' },
                {
                    label: "分开", name: "F_Split", width: 100, align: "center",
                    formatter: function (cellvalue) {
                        return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
                    }
                },
                {
                    label: "公共", name: "F_IsPublic", width: 95, align: "center",
                    formatter: function (cellvalue) {
                        return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
                    }
                },
                {
                    label: "有效", name: "F_EnabledMark", width: 90, align: "center", autowidth: false,
                    formatter: function (cellvalue) {
                        return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
                    }
                }
                ]
            });
        }



    </script>

</head>
<body>
    <div class="t2"></div>
    <div id="topinfo">
        @*<div class="topPanel" style="border: 0px;">
                <div class="search">
                    <table>
                        <tr>
                            <td>
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="请输入要查询关键字" style="width: 200px;">
                                    <span class="input-group-btn">
                                        <button type="button" class="btn  btn-primary"><i class="fa fa-search"></i></button>
                                    </span>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="toolbar">
                    <div class="btn-group">
                        <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
                    </div>
                    <div class="btn-group">
                        <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>全选</a>
                    </div>
                    <div class="btn-group">
                        <a class="btn btn-primary" onclick="btn_clonebutton()"><i class="fa fa-paste"></i>确定</a>
                    </div>
                </div>
            </div>*@
        <p class="spread2  ">
            零件编号：<input name="name" type="text" size="25" maxlength="2" class="form-success">&nbsp
            <a class="btn btn-primary" onclick="btn_clonebutton()"><i class="fa fa-adjust"></i>查 询</a>
        </p>
    </div>
    <div id="topbutton">
        <div class="btn-group">
            <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>全选/全不选</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>确认入库</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>生成表单</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>修改</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>查询统计</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>导出Excel</a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>打印</a>
        </div>
    </div>
    <div class="t2"></div>
    <div class="t2"></div>
    @*<div id="area1">


        </div>
        <div id="area2">

        </div>
        <div id="area3">

        </div>*@
    <div id="area5">
        <div class="gridPanel">
            <table id="gridList"></table>
            <style>
                .ui-jqgrid {
                    border-left: 0px;
                    border-right: 0px;
                    border-bottom: 0px;
                }
            </style>
        </div>
    </div>
</body>
